package com.youlai.system.model.form;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

@Schema(description = "故障类型表单对象")
@Data
public class MoldForm {

    @Schema(description="故障类型ID")
    private Long id;

    @Schema(description="故障类型名称")
    @NotBlank(message = "故障类型名称不能为空")
    private String name;

    @Schema(description="故障类型编码")
    @NotBlank(message = "故障类型编码不能为空")
    private String code;

    @Schema(description = "故障评估频次")
    @NotNull(message = "故障评估频次不能为空")
    private Integer frequency;

    @Schema(description="排序")
    private Integer sort;

    @Schema(description="故障类型状态(1-正常；0-停用)")
    private Integer status;
}
